/*
 * @Description:
 *
 * @Author: XiongYaoYuan<xiongyaoyuan>
 * @Date: 2023-09-10 22:27:42
 * @FilePath: /yuxiuproweb/src/api/money/brand/index.js
 */
import request from "@/utils/request";

// 查询品牌列表
export function listBrand(query) {
  return request({
    url: "/md/brand/list",
    method: "get",
    params: query,
  });
}

// 查询品牌详细
export function getBrand(brandId) {
  return request({
    url: "/md/brand/" + brandId,
    method: "get",
  });
}

// 新增品牌
export function addBrand(data) {
  return request({
    url: "/md/brand",
    method: "post",
    data: data,
  });
}

// 修改品牌
export function updateBrand(data) {
  return request({
    url: "/md/brand",
    method: "put",
    data: data,
  });
}

// 删除品牌
export function delBrand(brandId) {
  return request({
    url: "/md/brand/" + brandId,
    method: "delete",
  });
}
